/* eslint-disable react-native/no-inline-styles */
import * as React from 'react';
import {Button, View, Text} from 'react-native';

const HomeScreen = ({navigation}) => {
  return (
    <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
      <Text>Home Screen</Text>
      <Button
        title="跳转到详情"
        onPress={() => {
          navigation.navigate('Details', {
            id: '12345',
            msg: '来自Home的信息',
            data: {
              username: '用户1',
            },
          });
        }}
      />
    </View>
  );
};

export default HomeScreen;
